package com.example.robertluozizhao.java.design.builder.normal;

/**
 * Created by Lzz on 8/22/2019.
 */


/**
 * 指挥者（Director）
 */
public class Director {

    private WangZheBuilder mWangZheBuilder;

    public Director(WangZheBuilder build) {
        mWangZheBuilder = build;
    }

    public  WangZheApp startConStruct() {
        WangZheApp wangZheApp = new WangZheApp();
        wangZheApp.setAndroidEngineer(mWangZheBuilder.buildAndridEegineer());
        wangZheApp.setJavaEngineer(mWangZheBuilder.buildJavaEegineer());
        wangZheApp.setUiEngineer(mWangZheBuilder.builduiEegineer());
        return wangZheApp;
    }
}
